﻿using System;

namespace Fan.LichTrucTiep.Repository.Entity
{
    public class User
    {
        public uint UserId { get; set; }
        public string Email { get; set; }
        public string HashPassword { get; set; }
        public string DisplayName { get; set; }
        public string FullName { get; set; }
        public string AvatarUrl { get; set; }
        public DateTime DateOfBirth { get; set; }
        public UserRole Role { get; set; }
        public UserStatus Status { get; set; }
        public DateTime RegisterDate { get; set; }

        public Gender Gender { get; set; }
        public uint LoggedInTimes { get; set; }
        public uint NumberOfArticlesCreated { get; set; }
        public uint ArticleUpdatedTimes { get; set; }
        public uint BannedTimes { get; set; }
    }

    public enum Gender
    {
        None = 0,
        Male = 1,
        Female =2
    }
}
